package com.bootdo.mall.dao;

import com.bootdo.mall.domain.MallIndexCategoryJoin;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author lujingqian
 * @email 2100272728@qq.com
 * @date 2019-11-12 14:57:08
 */
@Mapper
public interface MallIndexCategoryJoinDao {

	MallIndexCategoryJoin get(Long id);

	MallIndexCategoryJoin getIndexCategoryIdAndTypeAndRefId(@Param("type") Integer type,
															@Param("indexCategoryId") Long indexCategoryId,
	@Param("refId") Long refId
	);

	List<MallIndexCategoryJoin> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(MallIndexCategoryJoin mallIndexCategoryJoin);
	
	int update(MallIndexCategoryJoin mallIndexCategoryJoin);
	
	int remove(Long id);

	int removeByTypeIdAndIndexCategoryId(@Param("type") Integer type,
										 @Param("indexCategoryId") Long indexCategoryId);

	
	int batchRemove(Long[] ids);
}
